import request from '@/utils/request'

const prefix = '/dev-api'

export function login(data) {
  return request({
    // url: '/vue-admin-template/user/login',
    url: prefix + '/admin/acl/index/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    // url: '/vue-admin-template/user/info',
    url: prefix + '/admin/acl/index/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    // url: '/vue-admin-template/user/logout',
    url: prefix + '/admin/acl/index/logout',
    method: 'post'
  })
}

// 用户管理   GET /admin/acl/user/{page}/{limit}
// export const getPageList = (page, limit) => request({ url: prefix + `/admin/acl/user/${page}/${limit}`, method: 'get' })
